package com.letoken.platform.repo.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.app.po.AppMiningInfo;
import com.letoken.platform.repo.app.po.AppUserWallet;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-10-16
 */
public interface AppMiningInfoMapper extends BaseMapper<AppMiningInfo> {
    @Select("select * from app_mining_info where amount>0")
    List<AppMiningInfo> getInfoList();


    @Select("select * from app_mining_info where id = #{id} for update")
    AppMiningInfo selectForUpdate(@Param("id") Integer id);
}
